class Event(object):
    def __init__(self, name, evetype, trig_name, trigger = None):
        self.name = name
        self.evetype = evetype
        self.trig_name = trig_name
        self.trigger = trigger
        self.participants = []
        self.causes = []
        self.partic_names = []
        self.cause_names = []
        self.negated = False
    
    def get_name(self):
        return self.name

    def get_type(self):
        return self.evetype
    
    def get_negated(self):
        return self.negated

    def set_negated(self, negation):
        self.negated = negation

    def get_trig_name(self):
        return self.trig_name
    
    def get_trigger(self):
        return self.trigger

    def set_trigger(self, trigger):
            self.trigger = trigger

    def get_participants(self):
        return self.participants

    def get_partic_names(self):
        return self.partic_names

    def get_causes(self):
        return self.causes

    def add_participant(self, participant):
        self.participants.append(participant)
    
    def add_partic_name(self, partic_name):
        self.partic_names.append(partic_name)

    def __str__(self):
        result =  self.name + self.evetype + self.trig_name + str(self.negated)
        # WARNING: jython can't compile the next line
        result += "".join(str(i) for i in self.partic_names)
        return result
    
